From a04d9cb7487773e102285de13b7092a2bc9b6821 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 23 Jan 2013 11:11:39 -0800 Subject: [PATCH] Improved some thumb.php error messages. Change-Id: I5a61e898dd97db67b719a13ca044530c4baecc99 --- thumb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thumb.php b/thumb.php index f59ee0f8ff..781686092b 100644 --- a/thumb.php +++ b/thumb.php @@ -170,11 +170,11 @@ function wfStreamThumb( array $params ) { // Check the source file storage path if ( !$img->exists() ) { - wfThumbError( 404, 'The source file for the specified thumbnail does not exist.' ); + wfThumbError( 404, "The source file '$fileName' does not exist." ); wfProfileOut( __METHOD__ ); return; } elseif ( $img->getPath() === false ) { - wfThumbError( 500, 'The source file is not locally accessible.' ); + wfThumbError( 500, "The source file '$fileName' is not locally accessible." ); wfProfileOut( __METHOD__ ); return; } -- 2.20.1